testsuite: Add a css test
authorMatthias Clasen <mclasen@redhat.com>
Sat, 31 Oct 2020 04:36:47 +0000 (00:36 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 31 Oct 2020 04:38:49 +0000 (00:38 -0400)
This test verifies that CDO and CDC are ignored
as required.

testsuite/css/parser/cdo-cdc.css [new file with mode: 0644]
testsuite/css/parser/cdo-cdc.ref.css [new file with mode: 0644]
testsuite/css/parser/meson.build

diff --git a/testsuite/css/parser/cdo-cdc.css b/testsuite/css/parser/cdo-cdc.css
new file mode 100644 (file)
index 0000000..3670c19
--- /dev/null
@@ -0,0 +1,7 @@
+<!--
+
+label {
+  color: red;
+}
+
+-->
diff --git a/testsuite/css/parser/cdo-cdc.ref.css b/testsuite/css/parser/cdo-cdc.ref.css
new file mode 100644 (file)
index 0000000..e53c8cf
--- /dev/null
@@ -0,0 +1,3 @@
+label {
+  color: rgb(255,0,0);
+}
index 7ffd5d264422870f64f57161f0529d92123c1390..380489427cdeee9617bd9f156ab708377c10f295 100644 (file)
@@ -197,6 +197,8 @@ test_data = [
   'calc.ref.css',
   'calc-simple.css',
   'calc-simple.ref.css',
+  'cdo-cdc.css',
+  'cdo-cdc.ref.css',
   'close-at-end-of-file.css',
   'close-at-end-of-file.errors',
   'close-at-end-of-file.ref.css',